import Qs from 'qs'
import request from './request'

export default {
	pageUpdate: (data) => request({url: '/zyplayer-doc-wiki/page/update', method: 'post', data: Qs.stringify(data)}),
	pageChangeParent: (data) => request({url: '/zyplayer-doc-wiki/page/changeParent', method: 'post', data: Qs.stringify(data)}),
	pageList: (data) => request({url: '/zyplayer-doc-wiki/page/list', method: 'post', data: Qs.stringify(data)}),
	updatePage: (data) => request({url: '/zyplayer-doc-wiki/page/update', method: 'post', data: Qs.stringify(data)}),
	pageDetail: (data) => request({url: '/zyplayer-doc-wiki/page/detail', method: 'post', data: Qs.stringify(data)}),
	pageDelete: (data) => request({url: '/zyplayer-doc-wiki/page/delete', method: 'post', data: Qs.stringify(data)}),
	pageHistoryList: (data) => request({url: '/zyplayer-doc-wiki/page/history/list', method: 'post', data: Qs.stringify(data)}),
	pageHistoryDetail: (data) => request({url: '/zyplayer-doc-wiki/page/history/detail', method: 'post', data: Qs.stringify(data)}),
	pageNews: (data) => request({url: '/zyplayer-doc-wiki/page/news', method: 'post', data: Qs.stringify(data)}),
	pageSearchByEs: (data) => request({url: '/zyplayer-doc-wiki/page/searchByEs', method: 'post', data: Qs.stringify(data)}),
	pageLock: (data) => request({url: '/zyplayer-doc-wiki/page/lock', method: 'post', data: Qs.stringify(data)}),
	pageUnlock: (data) => request({url: '/zyplayer-doc-wiki/page/unlock', method: 'post', data: Qs.stringify(data)}),
	spaceFavoriteUpdate: (data) => request({url: '/zyplayer-doc-wiki/space/favorite/update', method: 'post', data: Qs.stringify(data)}),
	spaceAuthAssign: (data) => request({url: '/zyplayer-doc-wiki/space/auth/assign', method: 'post', data: Qs.stringify(data)}),
	spaceAuthList: (data) => request({url: '/zyplayer-doc-wiki/space/auth/list', method: 'post', data: Qs.stringify(data)}),
	spaceSettingList: (data) => request({url: '/zyplayer-doc-wiki/space/setting/list', method: 'post', data: Qs.stringify(data)}),
	spaceSettingUpdate: (data) => request({url: '/zyplayer-doc-wiki/space/setting/update', method: 'post', data: Qs.stringify(data)}),
	spaceList: (data) => request({url: '/zyplayer-doc-wiki/space/list', method: 'post', data: Qs.stringify(data)}),
	updateSpace: (data) => request({url: '/zyplayer-doc-wiki/space/update', method: 'post', data: Qs.stringify(data)}),
	getPageUserAuthList: (data) => request({url: '/zyplayer-doc-wiki/page/auth/list', method: 'post', data: Qs.stringify(data)}),
	assignPageUserAuth: (data) => request({url: '/zyplayer-doc-wiki/page/auth/assign', method: 'post', data: Qs.stringify(data)}),
	deletePageFile: (data) => request({url: '/zyplayer-doc-wiki/page/file/delete', method: 'post', data: Qs.stringify(data)}),
	pageCommentList: (data) => request({url: '/zyplayer-doc-wiki/page/comment/list', method: 'post', data: Qs.stringify(data)}),
	updatePageComment: (data) => request({url: '/zyplayer-doc-wiki/page/comment/update', method: 'post', data: Qs.stringify(data)}),
	deletePageComment: (data) => request({url: '/zyplayer-doc-wiki/page/comment/delete', method: 'post', data: Qs.stringify(data)}),
	pageZanList: (data) => request({url: '/zyplayer-doc-wiki/page/zan/list', method: 'post', data: Qs.stringify(data)}),
	updatePageZan: (data) => request({url: '/zyplayer-doc-wiki/page/zan/update', method: 'post', data: Qs.stringify(data)}),
	openPageDetail: (data) => request({url: '/zyplayer-doc-wiki/open-api/page/detail', method: 'post', data: Qs.stringify(data)}),
	openPageList: (data) => request({url: '/zyplayer-doc-wiki/open-api/page/list', method: 'post', data: Qs.stringify(data)}),
	openSpaceInfo: (data) => request({url: '/zyplayer-doc-wiki/open-api/space/info', method: 'post', data: Qs.stringify(data)}),
	openPageNews: (data) => request({url: '/zyplayer-doc-wiki/open-api/page/news', method: 'post', data: Qs.stringify(data)}),
	xxxxxxxxxxxx: (data) => request({url: 'update', method: 'post', data: Qs.stringify(data)}),
}
